<template>
	<view v-if="isLogin">
		<list-item v-for="(item, index) in list" :key="index" :item="item"></list-item>
	</view>
	<view v-else class="">
		<navigator url="/pages/login/login">	<button>还没有登录呢！！， 点击登录</button></navigator>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		data() {
			return {
				isLogin: uni.getStorageSync('token') ? true : false
			};
		},
		computed: {
			...mapState('collect', ['list'])
		}
	}
</script>

<style lang="scss">

</style>
